﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Lib.Data;
using Lib.Utils;

namespace SysObj
{
    public class Inf_InventoryStock : IDisposable
    {
        private string m_Command = "";
        private DateTime m_TuNgay = DateTime.Now;
        private DateTime m_DenNgay = DateTime.Now;

        public Inf_InventoryStock(string Command, DateTime TuNgay, DateTime DenNgay)
        {
            m_Command = Command;
            m_TuNgay = Cvert.ToShortDate(TuNgay);
            m_DenNgay = Cvert.ToShortDate(DenNgay);
        }

        public DataTable Excutive()
        {
            using (DataLayer db = new DataLayer())
            {
                return db.ExecDataTable("Inf_InventoryStock", "Command,TuNgay,DenNgay", m_Command, m_TuNgay, m_DenNgay);
            }
        }

        public void Dispose()
        {
            GC.Collect();
        }
    }
}
